package com.lz.kafka.producer.project.kafka.service;

import org.springframework.stereotype.Component;

@Component
public class KafkaConsumerService {

   /* @KafkaListener(groupId = "group01",topics = "topicfirst")
    public void onMessage(ConsumerRecord<String,Object> record, Acknowledgment acknowledgment, Consumer<?,?> consumer){
        System.out.println("*****获取的消息: "+record.value());
        acknowledgment.acknowledge();
    }*/
}
